* {
  padding: 0;
  margin: 0;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.battery {
  position: relative;
  width: 200px;
  height: 320px;
  background-color: #fff;
  border-radius: 15px 15px 5px 5px;
}

.battery::before {
  position: absolute;
  content: "";
  width: 50px;
  height: 20px;
  border-radius: 5px 5px 0px 0px;
  background-color: #fff;
  left: 50%;
  transform: translateX(-50%);
  top: -20px;
}

.battery::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 90%;
  bottom: 0;
  background: linear-gradient(to bottom, #7abcff 0%, #00bcd4 44%, #2196f3 100%);
  animation: rise 10s linear infinite;
}

@keyframes rise {
  0% {
    top: 95%;
    filter: hue-rotate(90deg);
  }

  95% {
    border-radius: 0;
  }

  100% {
    top: 0%;
    border-radius: 5px 5px 0px 0px;
    filter: hue-rotate(0deg);
  }
}

.cover {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  border-radius: 15px 15px 5px 5px;
  overflow: hidden;
}

.cover::before {
  position: absolute;
  content: '';
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.8);
  left: -50%;
  border-radius: 40% 30%;
  animation: coverBf 10s linear infinite;
}

.cover::after {
  position: absolute;
  content: '';
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.7);
  left: -50%;
  border-radius: 42% 40%;
  animation: coverAf 10s linear infinite;
}

@keyframes coverBf {
  0% {
    transform: rotate(0deg);
    bottom: 0;
  }

  100% {
    transform: rotate(360deg);
    bottom: 100%;
  }
}

@keyframes coverAf {
  0% {
    transform: rotate(30deg);
    bottom: 3%;
  }

  100% {
    transform: rotate(360deg);
    bottom: 100%;
  }
}